package main

import (
	"flag"
	"math/rand"
	"fmt"
)



func main(){

	//defnine flags
	maxp := flag.Int("max",10,"the max value")
	fmt.Println(*maxp)
	fmt.Println( flag.Args())

	//parse
	flag.Parse()
	//
	fmt.Println(rand.Intn(*maxp))

}